package com.fifth.common.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 商品存货信息
 * </p>
 *
 * @author 第五组
 * @since 2022-09-01
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("o_stock")
@ApiModel(value = "Stock对象", description = "商品存货信息")
public class Stock implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("库存id")
    private String id;

    @ApiModelProperty("商品id")
    private String goodsId;

    @ApiModelProperty("商品总数量")
    private Integer totalNum;

    @ApiModelProperty("商品价格")
    private BigDecimal price;

    @ApiModelProperty("商品售出数量")
    private Integer sellNum;

    @ApiModelProperty("商品剩余数量")
    private Integer residue;


}
